:: windows linux darwin freebsd
:: GOARCH 386 amd64 arm

set GOOS=linux
set GOARCH=amd64
go build -o ./bin/imageserver_linux main.go

set GOOS=windows
set GOARCH=amd64
go build -o ./bin/imageserver.exe main.go

:: docker build -t imageserver:v2.0.1 .
:: docker tag imageserver:v2.0.1 registry.cn-hangzhou.aliyuncs.com/homei2020/imageserver:v2.0.1
:: docker push registry.cn-hangzhou.aliyuncs.com/homei2020/imageserver:v2.0.1